<?php

namespace DesignNew\SimpleFactory;

use DesignNew\SimpleFactory\WoodenDoor;
/**
 * 生产房门的工厂
 */
class DoorFactory{

    public static function makeDoor($width, $height):Door
    {
        return new WoodenDoor($width, $height);
    }
}